package com.hf.work04;

/**
 * 计算机系
 * @author Lenovo-Healer
 */
public class ComputerDepartment extends Student{
    /**
     * 操作能力
     */
    private double operationAble;
    /**
     * 英语写作
     */
    private double englishWrite;

    /**
     * 综合成绩
     */
    @Override
    public double sumScore() {
        return this.getOperationAble()*0.4 + this.getEnglishWrite()*0.2 + this.getStuFinal()*0.2 + this.getStuMiddle()*0.2;
    }

    public ComputerDepartment() {
    }
    //有参构造


    public ComputerDepartment(int stuNo, String stuName, String stuSex, int stuAge, double stuFinal, double stuMiddle, double operationAble, double englishWrite) {
        super(stuNo, stuName, stuSex, stuAge, stuFinal, stuMiddle);
        this.operationAble = operationAble;
        this.englishWrite = englishWrite;
    }

    public double getOperationAble() {
        return operationAble;
    }

    public void setOperationAble(double operationAble) {
        this.operationAble = operationAble;
    }

    public double getEnglishWrite() {
        return englishWrite;
    }

    public void setEnglishWrite(double englishWrite) {
        this.englishWrite = englishWrite;
    }
}
